import requests
'''count=0
while 1:
    response = requests.get("https://y.qq.com/n/ryqq/toplist/4")
    if response.status_code==200:
        count+=1
        print('访问成功,共访问%d次'%count)
    else:
        print('访问失败')
print(response.status_code)
print(response.content.decode("utf-8"))
'''
response = requests.get("https://y.qq.com/n/ryqq/toplist/4")
print(response.status_code)
print(response.content.decode("utf-8"))


